<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>附件上传</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<jsp:include page="/scripts/jquery/index.html"></jsp:include>
<jsp:include page="/scripts/bootstrap/index.html"></jsp:include>
<link rel="stylesheet" href="${basepath }style/default.css">
<script type="text/javascript">
	function init() {
		var contTabTr=document.getElementById("contTab").children[0].children;
		if(parseInt(contTabTr.length)>7){
			document.getElementById("splitTd").style.cssText="width:2.4%"; 
		}else{
			document.getElementById("splitTd").style.cssText="width:0%"; 
		}
	}
	function closeWindow() {
		parent.w1.close();
	}
</script>
  </head>
  
<body onload="init()" style="height:100%">
	<form>
		<table class="contTable" style="height:96%">
			<tr class="firstTr">
				<td>
					<button onclick="closeWindow()" class="btn btn-primary" type="button">
						<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>&nbsp;<span>关闭</span>
					</button>
				</td>
			</tr>
			<tr style="height:*">
				<td>
					<div style="height:100%;vertical-align: top">
						<table style="width:100%;height:100%;">
					    	<tr>
					    		<td valign="top">
					    			<table style="width:100%;height:100%">
					    				<tbody>
					    					<tr align="center" style="background:#f0efef;height:30px">
					    						<td>
					    							<table style="width:100%;height:100%">
					    								<tr style="background:#f0efef;height:100%;font-weight:bold" align="center">
						    								<td style="width:10%">文件编号</td>
															<td style="width:25%">文件名</td>
															<td style="width:25%">文件路径</td>
															<td style="width:15%">文件大小</td>
															<td style="width:10%">文件类型</td>
															<td style="width:*">操作</td>
					    								</tr>
					    							</table>
					    						</td>
					    						<td id="splitTd"></td>
											</tr>
											<tr style="height:*;width:100%">
 												<td style="width:100%" colspan="8" valign="top">
	 												<div style="width:100%;height:220px;overflow-y:auto"> 
														<table id="contTab" style="width:100%;">
															<tbody>
																<tr style="height:30px;border-bottom:1px solid #efeeee">
																	<td style="width:10%;" align="center">1</td>
																	<td style="width:25%" align="center"><a href="#">附件1</a></td>
																	<td style="width:25%" align="center">C://</td>
																	<td style="width:15%" align="center">127KB</td>
																	<td style="width:10%" align="center">.doc</td>
																	<td style="width:*" align="center">
																		<button class="btn btn-primary" type="button" style="position:relative;left:1%;">下载</button>
																	</td>
																</tr>
																<tr style="height:30px;border-bottom:1px solid #efeeee">
																	<td align="center">1</td>
																	<td align="center"><a href="#">附件1</a></td>
																	<td align="center">C://</td>
																	<td align="center">127KB</td>
																	<td align="center">.doc</td>
																	<td align="center">
																		<button class="btn btn-primary" type="submit" style="position:relative;left:1%">下载</button>
																	</td>
																</tr>
															</table>
														</tbody>
	 												</div>
 												</td> 
											</tr>
					    				</tbody>
									</table>
					    		</td>
					    	</tr>
					    </table>
					</div>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
